package com.gmscosmo.janus.echarts;

public class Label {
    private boolean show = true;
    private String formatter;

    public boolean isShow() {
        return show;
    }

    public void setShow(boolean show) {
        this.show = show;
    }

    public String getFormatter() {
        return formatter;
    }

    public void setFormatter(String formatter) {
        this.formatter = formatter;
    }

    @Override
    public String toString() {
        if(formatter==null){
            return "{" +'\n'+
                    "   show:" + show + "\n"+
                    '}';
        }
        else{
            return "{" +'\n'+
                    "   show:" + show + ",\n"+
                    "   formatter:'" + formatter + '\'' +"\n"+
                    '}';
        }
    }
}
